package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.vo.SpuSaveVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.SpuInfoEntity;

import java.util.Map;

/**
 * spu信息
 *
 * @author mayp
 * @email 1582240996@qq.com
 * @date 2020-06-05 17:09:03
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPageByCondition(Map<String, Object> params);

//    保存新增商品
    void saveSpuInfo(SpuSaveVo spuInfoVo);

    void saveBaseSpuInfo(SpuInfoEntity spuInfoEntity);

    void up(Long spuId);
//根据sku的id得到spu信息
    SpuInfoEntity getSpuInfoBySkuId(Long skuId);
}

